package com.petdog.module.auth.dto;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

/**
 * 发送验证码请求DTO
 */
public class SendVerificationCodeRequest {
    @NotBlank(message = "邮箱不能为空")
    @Email(message = "邮箱格式不正确")
    private String email;
    
    /**
     * 验证码类型：register(注册), login(登录), reset(重置密码)
     */
    @NotBlank(message = "验证码类型不能为空")
    private String type = "register";

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}


